import { defineStore } from 'pinia'
export default defineStore('user', {
  state: () => {
    return {
      token: localStorage.getItem('token') || ''
    }
  },
  getters: {},
  actions: {
    setToken (value) {
      this.token = value
      localStorage.setItem('token', value)
    }
  }
})
